home *** CD-ROM | disk | FTP | other *** search
- /* Micro Cornucopia Magazine Issue #45 TECHTIPS Figure 4
- Turbo C step rate code */
-
- /* step.c - alters disk parameter table to vary floppy step rate */
-
- #include <stdio.h>
- #include <dos.h>
-
- const int step_rate = 0xef; /* 0xcf = 8 msec */
- /* 0xdf = 6 msec */
- /* 0xef = 4 msec */
- /* 0xff = 2 msec */
- /* 0xgf = 0 msec */
- main ()
- {
- pokeb (0x00, 0x522, step_rate); /* set new step rate in DPB */
- _AH = 0x00; /* set up for reset */
- geninterrupt (0x13); /* reset floppy controller */
- }
-